//
//  WDEnvironment.h
//  Woody
//
//  Created by Alean on 2022/11/29.
//

#import <Foundation/Foundation.h>

/// 区分工程target
int __attribute__ ((weak)) WDProjectTarget(void);
/// 区分环境
NSString * _Nonnull __attribute__ ((weak)) WDProjectEnvironment(void);

NS_ASSUME_NONNULL_BEGIN

@interface WDEnvironment : NSObject

@property (nonatomic, strong, class, readonly) NSString *host;
@property (nonatomic, copy, readonly) NSDictionary *configDic;
@property (nonatomic, assign, readonly) int target;
@property (nonatomic, strong, class) NSString *currentEnvironment;

+ (instancetype)shareInstance;
- (void)setupEnvironmentWithTarget:(int)target;

@end

NS_ASSUME_NONNULL_END
